@mixin mete-mobile {
  @media screen and (max-width: 767px) {
    @content;
  }
}

.collection_item {
  text-align: left;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;

  .moi-start-warp {
    justify-content: flex-start !important;
    flex-wrap: wrap;
    row-gap: 10px;
  }
  &:hover {
    .item-caption-title {
      text-decoration: underline;
    }
  }

  .actions-wrapper {
    position: absolute;
    bottom: 20px;
    right: 20px;
    @media screen and (max-width: 767px) {
      bottom: 15px;
      right: 15px;
    }

    .actions-wrapper-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      height: 40px;
      width: 40px;
      @media screen and (max-width: 767px) {
        height: 34px;
        width: 34px;
      }
      background-color: #fff;
      border-radius: 50%;
      transition: all 0.3s ease 0s;
      box-shadow: 0 0 1.5rem rgba(51,51,51,.1);
      &:hover {
        background-color: #f6cb46;
        svg{
            path{
                fill: #fff;
            }
        }
      }
    }
  }

  & > div {
    width: 100%;
  }

  .item-caption {
    margin-top: 10px;
    font-size: 18px;
    @media screen and (max-width: 767px) {
      font-size: 16px;
    }
    .item-caption-price {
      margin-top: 15px;
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      justify-content: flex-start;
    }

    .item-caption-title {
      color: var(--title_color);
      font-size: var(--product_font_size);
      margin-bottom: 10px;
      text-underline-offset: 3px;
      @media screen and (max-width: 767px) {
        font-size: 16px;
        font-weight: bold;
      }
    }

    .collection-product-soldout {
      align-self: flex-start;
      color: #282828;
      padding: 2px 10px;
      font-size: 12px;
      margin-bottom: 5px;
      background: rgba(255, 255, 255, 0.8);
      border-radius: 2px;
    }

    .product-info-star {
      flex-wrap: wrap;
      row-gap: 10px;

      .comment-star-base {
        flex-wrap: wrap;
      }
    }
  }

  .product_card-wap-name {
    @include mete-mobile {
      display: none;
    }
  }

  .product_card-picture-crop-11 {
    padding-top: 100%;

    img {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }

  .product_card-picture-crop-34 {
    padding-top: 125%;

    img {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }

  .product_card-picture-crop-23 {
    padding-top: 150%;

    img {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }

  .product_card-picture-crop-12 {
    padding-top: 200%;

    img {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }
}

.collection-product-item {
  display: inline-block;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  width: 100%;
  border-radius: 30px;

  .product_card_soldout {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    line-height: 30px;
    text-align: center;
    z-index: 20;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
  }

  .collection-product-item-image {
    width: 100%;
    height: 100%;
    opacity: 1;
    object-fit: cover;
    cursor: pointer;
    transition: all cubic-bezier(0, 0, 0.2, 1) 200ms;
  }

  .product_card-tag {
    position: absolute;
    right: 0;
    top: 0;
    z-index: 10;
    color: var(--discount_tag_color);

    .discount_tag_graphics {
      position: absolute;
      right: 0;
    }
  }

  .hover-two {
    opacity: 0;
  }

  .label_style_1 {
    width: 80px;
    height: 80px;
    line-height: 80px;

    .discount_tag_graphics {
      top: 0;
      width: 0;
      height: 0;
      border-top: 80px solid var(--discount_tag_bg);
      border-left: 80px solid transparent;
    }

    .discount_tag_name {
      position: relative;
      top: 6px;
      left: 15px;
      z-index: 9;
      line-height: 18px;
      transform: rotate(45deg);
      width: 80px;
      height: 40px;
      font-size: 14px;
      text-align: center;
    }

    span {
      display: block;
    }
  }

  .label_style_2 {
    padding: 0 0 10px;

    .discount_tag_graphics {
      left: 0;
      bottom: 0;
      width: 40px;
      height: 10px;

      &:before {
        position: absolute;
        right: 0;
        top: 0;
        content: "";
        width: 0;
        height: 0;
        border-top: 10px solid var(--discount_tag_bg);
        border-left: 20px solid transparent;
      }

      &:after {
        position: absolute;
        left: 0;
        top: 0;
        content: "";
        width: 0;
        height: 0;
        border-top: 10px solid var(--discount_tag_bg);
        border-right: 20px solid transparent;
      }
    }

    .discount_tag_name {
      width: 40px;
      text-align: center;
      background: var(--discount_tag_bg);
      padding: 10px 0;
    }
  }

  .label_style_3 {
    height: 80px;
    width: 80px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;

    .discount_tag_name {
      position: relative;
      top: -12px;
      left: 12px;
      z-index: 9;
      line-height: 24px;
      transform: rotate(45deg);
      height: 24px;
      white-space: nowrap;
      background: var(--discount_tag_bg);
      padding: 0px 25px;
    }
  }

  .label_style_4 {
    right: 10px;
    top: 10px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--discount_tag_bg);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;

    .discount_tag_name {
      line-height: 18px;
      text-align: center;

      span {
        display: block;
      }
    }
  }
}

.main-image {
  opacity: 1;
}

.hover-two {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0;
  transform: scale(1.1);
  transition: transform 1s;
}

.animation-hover:hover {
  .main-image {
    opacity: 0;
  }

  .hover-two {
    opacity: 1;
    transform: scale(1);
  }
}
